#import "cardtest2.h"
//cardEffect(int card, int choice1, int choice2, int choice3, struct gameState *state, int handPos, int *bonus)
void testGreatHall(struct gameState* state){
    int player = whoseTurn(state);
    int preCount = state->handCount[player];
    int preActions = state->numActions;
    int result;
    int bonus = 0;
    int failed_tests = 0;
    result = cardEffect(great_hall,0,0,0,state,1,&bonus);
    if (result !=0 || state->handCount[player]!=preCount) {
        printf("Failed card count test for great hall for player %i\n",player);
        failed_tests+=1;
    }
    if (preActions+1 != state->numActions){
        printf("Failed action increment test for great hall for player %i\n",player);
        failed_tests+=1;
    }
    if(failed_tests==0){
        printf("All tests for great hall passed\n");
    }
    else{
        printf("Number of tests failed for great hall is %i\n",failed_tests);
    }
}
int main(int argc, char** argv){
    int cards[10] = {adventurer, council_room, feast, gardens, mine,
        remodel, smithy, village, baron, great_hall};
    
    struct gameState* game =newGame();
    int initialized = initializeGame(2,cards,42,game);
    if(initialized!=-1){
        testGreatHall(game);
    }
    return 0;
    
}